package com.tuanzi.loan.business.repository.sms.impl;

import static com.tuanzi.loan.generated.jooq.loan.tables.PhoneLocation.PHONE_LOCATION;

import java.util.List;

import org.jooq.impl.TableImpl;

import com.tuanzi.loan.business.repository.sms.custom.PhoneLocationCustomRepository;
import com.tuanzi.loan.core.repository.JOOQBaseRepository;

/**
* @author chenweijun 
* @version 2018年7月25日
*/
public class PhoneLocationRepositoryImpl extends JOOQBaseRepository implements PhoneLocationCustomRepository {
	
	@Override
	protected TableImpl getTable() {
		return PHONE_LOCATION;
	}

	@Override
	public List<String> findDistinctProvince() {
		return dslContext.selectDistinct(PHONE_LOCATION.PROVINCE).from(PHONE_LOCATION).fetch(PHONE_LOCATION.PROVINCE);
	}


}
